package com.module.sysconfig.service.impl;

import java.util.List;
import java.util.Map;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.module.sysconfig.dao.SfpzbMapper;
import com.module.sysconfig.service.SfpzbService;
import com.support.cache.annotation.CacheEvict;
import com.support.cache.annotation.Cacheable;
import com.support.cache.annotation.KeyMode;
import com.support.jdbc.Page;

@Service
public class SfpzbServiceImpl implements SfpzbService{
	
	@Autowired
	private SfpzbMapper sfpzbMapper;
	
	/**
	 * 添加收费配置
	 */
	@CacheEvict(key="ALL_SFPZB")
	public void saveSfpzb(Map<String, String> paramsMap) 
	{
		sfpzbMapper.saveSfpzb(paramsMap);
	}

	

	/**
	 * 收费配置的删除
	 */
	@CacheEvict(key="ALL_SFPZB")
	public void delSfpzb(Long ID) 
	{
		sfpzbMapper.delSfpzb(ID);
	}

	/**
	 * 收费配置的修改
	 */
	@CacheEvict(key="ALL_SFPZB")
	public void updateSfpzb(Map<String, String> paramsMap) 
	{
		sfpzbMapper.updateSfpzb(paramsMap);
	}

	/**
	 * 收费配置列表查询
	 */
	@Cacheable(expire=10,keyMode=KeyMode.ALL,key="FJPZB")
	public List<Map<String, String>> queryRecordSfpzb(Page<?> page) 
	{
		return sfpzbMapper.queryRecordSfpzb(page);
	}

	/**
	 * ID查询收费配置信息
	 */
	public Map<String, String> querySfpzb(Long ID) 
	{
		return sfpzbMapper.querySfpzb(ID);
	}

	
}
